import React from "react";
import { connect } from "react-redux";
import actions from "../store/action";
import store from "../store/index";
function UseStore(props) {
  const state =  store.getState();
  console.log("-----", store.getState());
  return (
    <div>
      <h4>姓名：</h4>
      <h4>年龄：{state.count.count}</h4>
      <button>
        增加一岁
      </button>
    </div>
  );
}
export default connect((res) => {
  return res;
})(UseStore);
